<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>首页</title>
</head>
<body>
    <table width="400px" border="1" cellpadding="0" cellspacing="0" align="center">
        <tr>
            <td>标题</td>
            <td>名字</td>
            <td>点击量</td>
            <td>操作&nbsp;&nbsp;<a href="<?php echo site_url() ?>/Home/Home/add">添加数据</a></td>
        </tr>
        <?php foreach($list as $v) {  ?>
        <tr>
            <td><?php echo $v['id'];  ?></td>
            <td><?php echo $v['name'];  ?></td>
            <td><?php echo $v['click_times'];  ?></td>
            <td>
                <a href="<?php echo site_url() ?>/Home/Home/update?id=<?php echo $v['id']; ?>">编辑</a>
                <a href="<?php echo site_url() ?>/Home/Home/del?id=<?php echo $v['id']; ?>">删除</a>
            </td>
        </tr>
        <?php  } ?>

    </table>
    
</body>
</html>